package com.csea.impl;

import com.csea.UserCredential;

/**
 * @author Csea
 * @title
 * @date 2019/12/11 19:49
 */
public class UserCredentialImpl implements UserCredential {
    /**
     * 校验用户信息
     *
     * @param username
     * @return
     */
    @Override
    public String verifyUser(String username) {
        if ("admin".equals(username)) {
            return "系统管理员";
        } else if ("manager".equals(username)) {
            return "用户管理员";
        } else {
            return "普通会员";
        }
    }
}
